package com.andnnl.trys;

/**
 * Created by chenss on 2023/1/10.
 */
public class TryTest {
    public static void main(String[] args) {
        System.out.println(getA());
    }

    private static int getA() {
        int a=0;
        try {
            a=a+2;
            int b=0;
            int c=a/b;
            return a;
        }catch (Exception e) {
            a=3;
            return a;
        }finally {
            if(a==3) {
                System.out.println("3333333333");
            }else{
                System.out.println("222222222222");
            }
        }
//        return a;
    }
}
